/**
 * @defaultRoutes
 * 前端本地路由，本地开发使用；permission为异步路由匹配component的对应关系
 *
 * @name String(首字母大写) 需要和组件的name相同，否则无法keep-alive
 *
 * meta {}对象
 * @param hidden: Boolearn, 是否隐藏菜单
 * @param title: String'工作台', 标题
 * @param affix: Boolearn, 是否固定再历史tab
 * @param cacheable: Boolearn, keep-alive, 默认缓存
 * @param icon: String'menu-dashborad', 图标
 */
const Layout = () => import('@/layouts/Layout.vue')

export const defaultRoutes = [
  {
    path: '/',
    redirect: '/index/home',
    meta: {
      hidden: true,
    },
  },
  // fix: 目前 /index 下面菜单的权限名称都叫 permissions，与其他菜单不一致（permission）
  // src/store/help/index.ts dealHomeRoute 函数中也叫 permissions，两边可以对应上
  {
    path: '/index',
    name: 'dashborad',
    component: Layout,
    meta: { title: '工作台', icon: 'menu-dashborad', collapsed: true },
    children: [
      {
        path: '/index/home',
        name: 'data-board',
        component: () => import('@/views/index/data-board.vue'),
        meta: { title: '数据看板', icon: 'menu-sub-1_1', affix: true, cacheable: false },
        permissions: 'svms:index:workplace:databoard',
      },
      {
        path: '/index/revenue',
        name: 'revenue',
        component: Layout,
        meta: { title: '营收统计', icon: 'menu-sub-1_4' },
        permissions: 'svms:index:revenue',
        children: [
          {
            path: '/index/revenue/summary',
            name: 'revenueSummary',
            component: () => import('@/views/index/revenue-summary/index.vue'),
            meta: { title: '营收汇总', disableScroll: true },
            permissions: 'svms:index:revenue:summary',
          },
          {
            path: '/index/revenue/vehicle-accounting',
            name: 'VehicleAccounting',
            component: () => import('@/views/index/vehicle-accounting/index.vue'),
            meta: { title: '单车核算', disableScroll: true },
            permissions: 'svms:index:revenue:vehicle-accounting',
          },
        ],
      },
      {
        path: '/index/to-do',
        name: 'workPlace',
        component: () => import('@/views/index/work-place.vue'),
        meta: { title: '待办事项', icon: 'menu-sub-1_2', cacheable: false },
        // 必有的页面，数据看板不存在则为首页
        // permissions: 'svms:index:workplace:operate',
      },
      // 司机排班
      {
        path: '/index/driver-scheduling',
        name: 'diverSchedule',
        component: () => import('@/views/index/driver-scheduling.vue'),
        meta: { title: '司机排班', icon: 'menu-sub-1_3', cacheable: false },
        permissions: 'svms:index:workplace:driver-scheduling',
      },
    ],
  },
  {
    path: '/merchant',
    name: 'merchant',
    component: Layout,
    meta: { title: '商户', icon: 'menu-home' },
    permission: 'svms:merchant',
    children: [
      {
        path: '/merchant/enterprise',
        name: 'EnterpriseInfo',
        component: () => import('@/views/merchant/enterprise/index.vue'),
        meta: { title: '商户信息', icon: 'menu-sub-2_1' },
        permission: 'svms:merchant:enterprise',
      },
      {
        path: '/merchant/role',
        name: 'MerchantRole',
        component: () => import('@/views/merchant/role/list.vue'),
        meta: { title: '角色管理', icon: 'menu-sub-2_2' },
        permission: 'svms:merchant:role',
      },
      {
        path: '/merchant/organization',
        name: 'OrganizationList',
        component: () => import('@/views/merchant/organization/institution/list.vue'),
        meta: { title: '组织机构', icon: 'menu-sub-2_3' },
        permission: 'svms:merchant:organization',
      },
      {
        path: '/merchant/store',
        name: 'StoreManageList',
        component: () => import('@/views/merchant/store/list.vue'),
        meta: { title: '门店管理', icon: 'menu-sub-2_4' },
        permission: 'svms:merchant:store',
      },
    ],
  },
  {
    path: '/assets',
    name: 'assets',
    component: Layout,
    meta: { title: '资产', icon: 'menu-assets' },
    permission: 'svms:asstes',
    children: [
      {
        path: '/assets/car',
        name: 'Car',
        component: Layout,
        meta: { title: '车辆', icon: 'menu-sub-3_1' },
        permission: 'svms:asstes:car',
        children: [
          {
            path: '/assets/car/car-model',
            name: 'CarModelList',
            component: () => import('@/views/assets/car/car-model/list.vue'),
            meta: { title: '车型管理' },
            permission: 'svms:asstes:car:car-model',
          },
          {
            path: '/assets/car/car-manage',
            name: 'CarManageList',
            component: () => import('@/views/assets/car/car-manage/list.vue'),
            meta: { title: '车辆管理' },
            permission: 'svms:asstes:car:car-manage',
          },
          {
            path: '/assets/car/stock',
            name: 'CarStockManage',
            component: () => import('@/views/assets/car/stock/index.vue'),
            meta: { title: '库存管理' },
            permission: 'svms:asstes:car:stock',
          },
          {
            path: '/assets/car/disposal',
            name: 'DisposalCarList',
            component: () => import('@/views/assets/car/disposal/list.vue'),
            meta: { title: '处置车辆' },
            permission: 'svms:asstes:car:disposal',
          },
          {
            // 归还车辆
            path: '/assets/car/return',
            name: 'ReturnCarList',
            component: () => import('@/views/assets/car/return/list.vue'),
            meta: { title: '归还车辆' },
            permission: 'svms:asstes:car:return',
          },
        ],
      },
      {
        path: '/assets/operation',
        name: 'Operation',
        component: Layout,
        meta: { title: '运维', icon: 'menu-sub-3_2' },
        permission: 'svms:asstes:operation',
        children: [
          {
            path: '/assets/operation/car-insure',
            name: 'CarInsureList',
            component: () => import('@/views/assets/operation/car-insure/list.vue'),
            meta: { title: '车辆保险' },
            permission: 'svms:asstes:operation:car-insure',
          },
          {
            path: '/assets/operation/car-repair',
            name: 'CarRepairList',
            component: () => import('@/views/assets/operation/car-repair/list.vue'),
            meta: { title: '车辆维修' },
            permission: 'svms:asstes:operation:car-repair',
          },
          {
            path: '/assets/operation/car-maintenance',
            name: 'CarMaintenanceList',
            component: () => import('@/views/assets/operation/car-maintenance/list.vue'),
            meta: { title: '车辆保养' },
            permission: 'svms:asstes:operation:car-maintenance',
          },
          {
            path: '/assets/operation/car-inspect',
            name: 'CarInspectList',
            component: () => import('@/views/assets/operation/car-inspect/list.vue'),
            meta: { title: '车辆年检' },
            permission: 'svms:asstes:operation:car-inspect',
          },
          {
            path: '/assets/operation/car-transfer',
            name: 'CarTransferList',
            component: () => import('@/views/assets/operation/car-transfer/list.vue'),
            meta: { title: '车辆借调' },
            permission: 'svms:asstes:operation:car-transfer',
          },
        ],
      },
      {
        path: '/assets/violation',
        name: 'Violation',
        component: Layout,
        meta: { title: '违章', icon: 'menu-sub-19' },
        permission: 'svms:asstes:violation',
        children: [
          // 违章查询
          {
            path: '/assets/violation/query',
            name: 'CarViolationQuery',
            component: () => import('@/views/assets/violation/query/query.vue'),
            meta: { title: '违章查询', cacheable: false },
            permission: 'svms:asstes:violation:query',
          },
          // 列表
          {
            path: '/assets/violation/car-violation',
            name: 'CarViolationList',
            component: () => import('@/views/assets/operation/car-violation/list.vue'),
            meta: { title: '违章列表' },
            permission: 'svms:asstes:operation:car-violation',
          },
          // 列表
          {
            path: '/assets/violation/sms-logs',
            name: 'CarViolationSmsLogsList',
            component: () => import('@/views/assets/violation/sms-logs/list.vue'),
            meta: { title: '违章短信记录' },
            permission: 'svms:asstes:violation:sms-logs',
          },
        ],
      },
      {
        path: '/assets/device',
        name: 'Device',
        component: Layout,
        meta: { title: '设备', icon: 'menu-sub-3_3' },
        permission: 'svms:asstes:device',
        children: [
          {
            path: '/assets/device/car-vehicle',
            name: 'CarVehicleList',
            component: () => import('@/views/assets/device/car-vehicle/list.vue'),
            meta: { title: 'GPS管理' },
            permission: 'svms:asstes:device:car-vehicle',
          },
        ],
      },
    ],
  },
  {
    path: '/business',
    name: 'business',
    component: Layout,
    meta: { title: '业务', icon: 'menu-business' },
    permission: 'svms:business',
    children: [
      {
        path: '/business/channel',
        name: 'Channel',
        component: Layout,
        meta: { title: '渠道管理', icon: 'menu-sub-4_1' },
        permission: 'svms:business:channel',
        children: [
          {
            path: '/business/channel/ota',
            name: 'OtaChannelList',
            component: () => import('@/views/business/channel/ota/list.vue'),
            meta: { title: 'OTA渠道管理' },
            permission: 'svms:business:channel:ota',
          },
          {
            path: '/business/channel/order-sync',
            name: 'OrderSyncList',
            component: () => import('@/views/business/channel/order-sync/list.vue'),
            meta: { title: '订单同步记录' },
            permission: 'svms:business:channel:order-sync',
          },
          {
            path: '/business/channel/inventory-sync',
            name: 'InventorySyncList',
            component: () => import('@/views/business/channel/inventory-sync/list.vue'),
            meta: { title: '库存同步记录' },
            permission: 'svms:business:channel:inventory-sync',
          },
          {
            path: '/business/channel/sync-ota-price',
            name: 'SyncOtaPrice',
            component: () => import('@/views/business/price/sync-ota-price/list.vue'),
            meta: { title: '反写价格结果查询', cacheable: false },
            permission: 'svms:business:channel:sync-ota-price',
          },
        ],
      },
      // 运营成本
      {
        path: '/business/operate-cost',
        name: 'OperateCostList',
        component: () => import('@/views/business/operate-cost/list.vue'),
        meta: { title: '运营成本', icon: 'menu-sub-4_2' },
        permission: 'svms:business:operate-cost',
      },
      {
        path: '/business/price',
        name: 'Price',
        component: Layout,
        meta: { title: '价格配置', icon: 'menu-sub-4_3' },
        permission: 'svms:business:price',
        children: [
          {
            path: '/business/price/car-model',
            name: 'CarModelPriceList',
            component: () => import('@/views/business/price/car-model/list.vue'),
            meta: { title: '车型价格' },
            permission: 'svms:business:price:car-model',
          },
          {
            path: '/business/price/common',
            name: 'CommonPriceList',
            component: () => import('@/views/business/price/common/list.vue'),
            meta: { title: '通用费用' },
            permission: 'svms:business:price:common',
          },
        ],
      },
      {
        path: '/business/fence',
        name: 'FenceList',
        component: () => import('@/views/business/fence/list.vue'),
        meta: { title: '电子围栏', icon: 'menu-sub-4_4' },
        permission: 'svms:business:fence',
      },
      {
        path: '/business/work-order',
        name: 'WorkOrder',
        component: Layout,
        meta: { title: '工单管理', icon: 'menu-sub-4_5' },
        permission: 'svms:business:work-order',
        children: [
          {
            path: '/business/work-order/car-steward',
            name: 'WorkOrderCarSteward',
            component: () => import('@/views/business/workOrder/car-steward/index.vue'),
            meta: { title: '配置车管家模式' },
            permission: 'svms:business:work-order:car-steward',
          },
          {
            path: '/business/work-order/order',
            name: 'WorkOrderList',
            component: () => import('@/views/business/workOrder/order/list.vue'),
            meta: { title: '订单工单' },
            permission: 'svms:workOrder:workOrder:order',
          },
        ],
      },
      // 消息中心
      {
        path: '/business/message',
        name: 'MessageList',
        component: Layout,
        meta: { title: '消息中心', icon: 'menu-sub-4_7' },
        permission: 'svms:business:message',
        children: [
          // 业务通知模板
          {
            path: '/business/message/business-notice',
            name: 'BusinessNoticeList',
            component: () => import('@/views/business/message/business-notice/list.vue'),
            meta: { title: '业务通知模板' },
            permission: 'svms:business:message:business-notice',
          },
          // 业务通知列表
          {
            path: '/business/message/business-notice-record',
            name: 'BusinessNoticeRecordList',
            component: () => import('@/views/business/message/business-notice-record/list.vue'),
            meta: { title: '业务通知列表' },
            permission: 'svms:business:message:business-notice-record',
          },
          // 系统消息列表
          {
            path: '/business/message/system-message',
            name: 'SystemMessageList',
            component: () => import('@/views/business/message/system-message/list.vue'),
            meta: { title: '系统消息列表' },
            permission: 'svms:business:message:system-message',
          },
        ],
      },
    ],
  },
  {
    path: '/order',
    name: 'order',
    component: Layout,
    meta: { title: '订单', icon: 'menu-order' },
    permission: 'svms:order',
    children: [
      {
        path: '/order/short-order',
        name: 'ShortOrderList',
        component: () => import('@/views/order/short-order/list.vue'),
        meta: { title: '自驾短租订单', icon: 'menu-sub-5_1' },
        permission: 'svms:order:short-order',
      },
      {
        path: '/order/long-order',
        name: 'LongOrderList',
        component: () => import('@/views/order/long-order/list.vue'),
        meta: { title: '自驾长租订单', icon: 'menu-sub-5_2' },
        permission: 'svms:order:long-order',
      },
      {
        path: '/order/etc-order',
        name: 'EtcOrderList',
        component: () => import('@/views/order/etc-order/list.vue'),
        meta: { title: 'ETC租赁订单', icon: 'menu-sub-5_4' },
        permission: 'svms:order:etc-order',
      },
      {
        path: '/order/car-virtual-key',
        name: 'CarVirtualKeyList',
        component: () => import('@/views/order/car-virtual-key/list.vue'),
        meta: { title: '虚拟钥匙控车单', icon: 'menu-sub-11' },
        permission: 'svms:asstes:device:car-virtual-key',
      },
      {
        path: '/order/invalid',
        name: 'InvalidOrder',
        component: Layout,
        meta: { title: '作废订单', icon: 'menu-sub-5_3' },
        permission: 'svms:order:invalid',
        children: [
          {
            path: '/order/invalid/short-order',
            name: 'InvalidShortOrderList',
            component: () => import('@/views/order/short-order/invalidList.vue'),
            meta: { title: '短租作废订单' },
            permission: 'svms:order:invalid:short-order',
          },
          {
            path: '/order/invalid/long-order',
            name: 'InvalidLongOrderList',
            component: () => import('@/views/order/long-order/invalidList.vue'),
            meta: { title: '长租作废订单' },
            permission: 'svms:order:invalid:long-order',
          },
        ],
      },
    ],
  },
  {
    path: '/market',
    name: 'market',
    component: Layout,
    meta: { title: '市场', icon: 'menu-member' },
    permission: 'svms:market',
    children: [
      {
        path: '/market/bazaar/member',
        name: 'MemberList',
        component: () => import('@/views/market/bazaar/member/list.vue'),
        meta: { title: '个人会员', icon: 'menu-sub-6_1' },
        permission: 'svms:market:bazaar:member',
      },
      {
        path: '/market/bazaar/clientInfo',
        name: 'EpClientList',
        component: () => import('@/views/market/bazaar/clientInfo/list.vue'),
        meta: { title: '企业客户', icon: 'menu-sub-6_2' },
        permission: 'svms:market:bazaar:clientInfo',
      },
      {
        path: '/market/bazaar/peer',
        name: 'PeerList',
        component: () => import('@/views/market/bazaar/peer/list.vue'),
        meta: { title: '同行管理', icon: 'menu-sub-6_3' },
        permission: 'svms:market:bazaar:peer',
      },
      {
        path: '/market/bazaar/supplier',
        name: 'SupplierList',
        component: () => import('@/views/market/bazaar/supplier/list.vue'),
        meta: { title: '供应商管理', icon: 'menu-sub-6_4' },
        permission: 'svms:market:bazaar:supplier',
      },
    ],
  },
  {
    path: '/finance',
    name: 'finance',
    component: Layout,
    meta: { title: '财务', icon: 'menu-finance' },
    permission: 'svms:finance',
    children: [
      {
        path: '/finance/examine',
        name: 'examineList',
        component: Layout,
        meta: { title: '财务对账', icon: 'menu-sub-7_2' },
        permission: 'svms:finance:examine',
        children: [
          {
            path: '/finance/examine/shortOrder',
            name: 'examineShortOrderList',
            component: () => import('@/views/finance/examine/shortOrder/list.vue'),
            meta: { title: '短租对账' },
            permission: 'svms:finance:examine:short-order',
          },
        ],
      },
      {
        path: '/finance/costConfirm',
        name: 'CostConfirmList',
        component: Layout,
        meta: { title: '费用管理', icon: 'menu-sub-7_1' },
        permission: 'svms:finance:costConfirm',
        children: [
          {
            path: '/finance/costConfirm/longOrder',
            name: 'LongOrderListCost',
            component: () => import('@/views/finance/cost-confirm/longOrder/list.vue'),
            meta: { title: '自驾长租费用' },
            permission: 'svms:finance:costConfirm:long-order',
          },
          {
            path: '/finance/cost-confirm/violation',
            name: 'ViolationFee',
            component: () => import('@/views/finance/cost-confirm/violation/list.vue'),
            meta: { title: '违章费用' },
            permission: 'svms:finance:costConfirm:violation',
          },
        ],
      },
      // 之前是对账，v610改为结算
      {
        path: '/finance/reconciliation',
        name: 'ReconciliationList',
        component: Layout,
        meta: { title: '车辆运营结算', icon: 'menu-sub-7_8' },
        permission: 'svms:finance:reconciliation',
        children: [
          {
            path: '/finance/reconciliation/maintenance-fee',
            name: 'MaintenanceReconciliationList',
            component: () => import('@/views/finance/reconciliation/maintenance-fee/list.vue'),
            meta: { title: '运维结算' },
            permission: 'svms:finance:reconciliation:maintenance-fee',
          },
          {
            path: '/finance/reconciliation/transferReconciliation',
            name: 'TransferReconciliationList',
            component: () => import('@/views/finance/reconciliation/transferReconciliation/list.vue'),
            meta: { title: '调车结算' },
            permission: 'svms:finance:reconciliation:transferReconciliation',
          },
          {
            path: '/finance/reconciliation/car-purchase',
            name: 'CarPurchaseList',
            component: () => import('@/views/finance/reconciliation/car-purchase/list.vue'),
            meta: { title: '车辆购置费结算' },
            permission: 'svms:finance:reconciliation:car-purchase',
          },
        ],
      },
      {
        path: '/finance/deposit',
        name: 'DepositList',
        component: () => import('@/views/finance/deposit/list.vue'),
        meta: { title: '押金管理', icon: 'menu-sub-7_3' },
        permission: 'svms:finance:deposit',
      },
      {
        path: '/finance/turnover',
        name: 'TurnoverList',
        component: () => import('@/views/finance/turnover/list.vue'),
        meta: { title: '流水管理', icon: 'menu-sub-7_4' },
        permission: 'svms:finance:turnover',
      },
      {
        path: '/finance/tripartitePayment',
        name: 'tripartitePaymentList',
        component: () => import('@/views/finance/tripartitePayment/list.vue'),
        meta: { title: '三方支付账单', icon: 'menu-sub-7_6' },
        permission: 'svms:finance:tripartitePayment',
      },
      {
        path: '/finance/bill/operate-cost',
        name: 'OperateCostBill',
        component: () => import('@/views/finance/bill/operate-cost/list.vue'),
        meta: { title: '运营成本账单', icon: 'menu-sub-7_6' },
        permission: 'svms:finance:bill:operate-cost',
      },
    ],
  },
  {
    path: '/reportForms',
    name: 'reportForms',
    component: Layout,
    meta: { title: '报表', icon: 'menu-report' },
    permission: 'svms:reportForms',
    children: [
      {
        path: '/reportForms/car-rental-rate',
        name: 'CarRentalRateList',
        component: () => import('@/views/reportForms/car-rental-rate/list.vue'),
        meta: { title: '车辆出租率报表', icon: 'menu-sub-8' },
        permission: 'svms:reportForms:carRentalRate',
      },
      {
        path: '/reportForms/site-car-rental-rate',
        name: 'SiteCarRentalRateList',
        component: () => import('@/views/reportForms/car-rental-rate/site-list.vue'),
        meta: { title: '门店车辆出租率报表', icon: 'menu-sub-8' },
        permission: 'svms:reportForms:siteCarRentalRate',
      },
      {
        path: '/reportForms/car-model-rate',
        name: 'CarModelRateList',
        component: () => import('@/views/reportForms/car-model-rate/list.vue'),
        meta: { title: '车型出租率报表', icon: 'menu-sub-8' },
        permission: 'svms:reportForms:carModelRate',
      },
      {
        path: '/reportForms/store-rental-rate',
        name: 'StoreRentalRateList',
        component: () => import('@/views/reportForms/store-rental-rate/list.vue'),
        meta: { title: '门店出租率报表', icon: 'menu-sub-8' },
        permission: 'svms:reportForms:storeRentalRate',
      },
      {
        path: '/reportForms/store-revenue-report',
        name: 'StoreRevenueReportList',
        component: () => import('@/views/reportForms/store-revenue-report/list.vue'),
        meta: { title: '门店收益报表', icon: 'menu-sub-8' },
        permission: 'svms:reportForms:storeRevenueReport',
      },
    ],
  },
  {
    path: '/system',
    name: 'system',
    component: Layout,
    meta: { title: '系统管理', icon: 'menu-system' },
    permission: 'svms:system',
    children: [
      {
        path: '/system/general',
        name: 'General',
        component: Layout,
        meta: { title: '通用配置', icon: 'menu-sub-9_1' },
        permission: 'svms:system:general',
        children: [
          {
            path: '/system/general/io-account',
            name: 'IOAccountList',
            component: () => import('@/views/system/general/io-account/list.vue'),
            meta: { title: '结算方式管理' },
            permission: 'svms:system:general:io-ccount',
          },
          {
            path: '/system/general/backlog-rule',
            name: 'BacklogRule',
            component: () => import('@/views/system/general/backlogRule/index.vue'),
            meta: { title: '待办规则配置' },
            permission: 'svms:system:general:backlogRule',
          },
          {
            path: '/system/general/approval-settings',
            name: 'ApprovalSetings',
            component: () => import('@/views/system/general/approval-settings/approval-settings.vue'),
            meta: { title: '审批规则配置', cacheable: false },
            permission: 'svms:system:general:approval-settings',
          },
          {
            path: '/system/general/holiday-settings',
            name: 'HolidaySettings',
            component: () => import('@/views/system/general/holiday-settings/holiday-settings.vue'),
            meta: { title: '节假日时间配置', cacheable: false },
            permission: 'svms:system:general:holiday-settings',
          },
          {
            path: '/system/general/commission-settings',
            name: 'CommissionSetings',
            component: () => import('@/views/system/general/commission-settings/commission-settings.vue'),
            meta: { title: '渠道抽佣比例设置', cacheable: false },
            permission: 'svms:system:general:commission-settings',
          },
          {
            path: '/system/general/deposit-settings',
            name: 'DepositRule',
            component: () => import('@/views/system/general/depositRule/index.vue'),
            meta: { title: '押金规则配置', cacheable: false },
            permission: 'svms:system:general:deposit-backlogRule',
          },
        ],
      },
      {
        path: '/system/parameter',
        name: 'SystemParamList',
        component: () => import('@/views/system/parameter/index.vue'),
        meta: { title: '系统参数', icon: 'menu-sub-9_2' },
        permission: 'svms:system:parameter',
      },
    ],
  },
  {
    path: '/value-added',
    name: 'valueAdded',
    permission: 'svms:value-added',
    component: Layout,
    meta: { title: '增值服务', icon: 'menu-VAS' },
    children: [
      // 增值服务概述
      {
        path: '/value-added/overview',
        name: 'valueAddedOverview',
        component: () => import('@/views/value-added/overview/overview.vue'),
        meta: { title: '增值服务概述', icon: 'menu-sub-18' },
      },
      // 三方支付服务
      {
        path: '/value-added/third-payments',
        name: 'thirdPayments',
        component: Layout,
        meta: { title: '三方支付服务', icon: 'menu-sub-10' },
        permission: 'svms:value-added:third-payments',
        children: [
          {
            path: '/value-added/thirdPayment/aggregation',
            name: 'Aggregation',
            component: () => import('@/views/value-added/thirdPayment/aggregation/index.vue'),
            meta: { title: '聚合支付服务' },
            permission: 'svms:value-added:third-payments:polymerisation',
          },
        ],
      },
      // 违章查询
      {
        path: '/value-added/violation-inquiry',
        name: 'violationInquiry',
        component: () => import('@/views/value-added/violation-inquiry/violation-inquiry.vue'),
        meta: { title: '违章查询', icon: 'menu-sub-19' },
        permission: 'svms:value-added:violation-inquiry',
      },
      // 电子合同
      {
        path: '/value-added/contract',
        name: 'ContractList',
        component: Layout,
        meta: { title: '电子合同', icon: 'menu-sub-11' },
        permission: 'svms:business:contract',
        children: [
          {
            path: '/value-added/contract/settings',
            name: 'ValueAddedContractSettings',
            component: () => import('@/views/value-added/contract/enterprise/index.vue'),
            meta: { title: '付费合同服务配置' },
            permission: 'svms:value-added:contract:settings',
          },
          {
            path: '/value-added/contract/contract-template',
            name: 'ContractTemplateList',
            component: () => import('@/views/business/contract/contract-template/list.vue'),
            meta: { title: '合同模板' },
            permission: 'svms:business:contract:contract-template',
          },
          {
            path: '/value-added/contract/contract-sign',
            name: 'ContractSignList',
            component: () => import('@/views/business/contract/contract-sign/list.vue'),
            meta: { title: '合同签署记录' },
            permission: 'svms:business:contract:contract-sign',
          },
          {
            path: '/value-added/contract/enterprise-personal-auth',
            name: 'EnterprisePersonalAuthList',
            component: () => import('@/views/business/contract/enterprise-personal-auth/list.vue'),
            meta: { title: '企业/个人认证记录' },
            permission: 'svms:business:contract:enterprise-personal-auth',
          },
        ],
      },
      // 反向写价格
      {
        path: '/value-added/reverse-price-writing',
        name: 'reversePriceWriting',
        component: () => import('@/views/value-added/reverse-price-writing/reverse-price-writing.vue'),
        meta: { title: '反向写价格', icon: 'menu-sub-17' },
        permission: 'svms:value-added:reverse-price-writing',
      },
      {
        path: '/value-added/device',
        name: 'Device',
        component: Layout,
        meta: { title: '车载box服务', icon: 'menu-sub-15' },
        permission: 'svms:asstes:device:box',
        children: [
          {
            path: '/value-added/device/car-box-business',
            name: 'CarBoxCatalog',
            component: () => import('@/views/assets/device/car-box-business/list.vue'),
            meta: { title: '车载box业务管理' },
            permission: 'svms:asstes:device:car-box-business',
          },
          {
            path: '/value-added/device/car-box-install',
            name: 'CarBoxInstallList',
            component: () => import('@/views/assets/device/car-box-install/list.vue'),
            meta: { title: '车载box安装' },
            permission: 'svms:asstes:device:car-box-install',
          },
          {
            path: '/value-added/device/car-box-use',
            name: 'CarBoxUseList',
            component: () => import('@/views/assets/device/car-box-use/list.vue'),
            meta: { title: '车载box使用' },
            permission: 'svms:asstes:device:car-box-use',
          },
          {
            path: '/value-added/device/car-box-query',
            name: 'CarBoxQueryList',
            component: () => import('@/views/assets/device/car-box-query/list.vue'),
            meta: { title: '车载box数据查询' },
            permission: 'svms:asstes:device:car-box-query',
          },
        ],
      },
      // ETC
      {
        path: '/value-added/etc',
        name: 'etc',
        component: Layout,
        meta: { title: 'ETC服务', icon: 'menu-sub-13' },
        permission: 'svms:value-added:etc',
        children: [
          {
            path: '/value-added/etc/device',
            name: 'Etc',
            component: () => import('@/views/assets/equipment/etc.vue'),
            meta: { title: 'ETC业务管理' },
            permission: 'svms:asstes:equipment:etc',
          },
          {
            path: '/value-added/etc/car-info',
            name: 'CarInfoList',
            component: () => import('@/views/assets/equipment/car-info/car-info.vue'),
            meta: { title: '车辆信息同步' },
            permission: 'svms:asstes:equipment:car-info',
          },
        ],
      },
      // ocr识别服务
      {
        path: '/value-added/ocr-identification',
        name: 'ocrIdentification',
        component: () => import('@/views/value-added/ocr-identification/ocr-identification.vue'),
        meta: { title: 'OCR识别服务', icon: 'menu-sub-20' },
        permission: 'svms:value-added:ocr-identification',
      },
    ],
  },
]
